<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;

Route::get('/', 'index/Index/index'); //首页

Route::get('/admin', 'admin/index/index'); //首页

Route::get('/users/user','admin/user/user');//用户列表

Route::get('/users/add','admin/user/add');//添加用户页

Route::post('/users/doadd','admin/user/doadd');//执行添加用户

Route::get('/users/read/:id','admin/user/read');//查看用户角色

Route::get('/users/jiaose','admin/jiaose/index');//角色列表

Route::get('/users/show/:id','admin/user/show'); //分配角色

Route::post('/users/addjs/:id','admin/user/addjs');//执行分配角色

Route::get('/users/jsadd','admin/jiaose/jsadd'); //添加角色
Route::get('/users/look/:id','admin/jiaose/look'); //查看角色权限


Route::get('/users/jsdoadd','admin/jiaose/jsdoadd');//执行添加角色

Route::get('/users/permission','admin/permission/index');//查看权限列表

Route::get('/users/pmadd','admin/permission/pmadd');//添加权限

Route::post('/users/pmdoadd','admin/permission/pmdoadd');//执行添加权限列表

Route::post('/users/logindo','admin/index/logindo');

Route::get('/users/peradd/:id','admin/permission/peradd');//添加角色权限

Route::post('users/addper/:id','admin/permission/addper'); //执行添加权限

Route::get('/users/main','admin/main/index');
return [

];
